package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 订货单表
 * </p>
 *
 * @author 飞
 * @since 2019-07-02
 */
@TableName("purchase_orders")
public class PurchaseOrders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "purchase_id", type = IdType.AUTO)
    private Long purchaseId;

    /**
     * 购买数量
     */
    @TableField("orderNumbers")
    private BigDecimal orderNumbers;

    /**
     * 总金额
     */
    @TableField("orderAmount")
    private BigDecimal orderAmount;

    /**
     * 购买单位
     */
    @TableField("unitId")
    private Integer unitId;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 发货数量
     */
    @TableField("hava_send")
    private BigDecimal havaSend;

    /**
     * 产品id
     */
    @TableField("product_Id")
    private Long productId;

    /**
     * 未发数量
     */
    @TableField("not_send")
    private BigDecimal notSend;

    /**
     * 已发数量金额
     */
    @TableField("hava_send_price")
    private BigDecimal havaSendPrice;

    /**
     * 未发数量金额
     */
    @TableField("not_send_price")
    private BigDecimal notSendPrice;

    /**
     * 1.交易正在进行2.交易结束
     */
    @TableField("status")
    private Integer status;

    public Long getDispatchNum() {
        return dispatchNum;
    }

    public void setDispatchNum(Long dispatchNum) {
        this.dispatchNum = dispatchNum;
    }

    /**
     * 发货数量
     */
    @TableField("dispatch_num")
    private Long dispatchNum;

    public Integer getChannel() {
        return channel;
    }

    public void setChannel(Integer channel) {
        this.channel = channel;
    }

    public Long getPackageSize() {
        return packageSize;
    }

    public void setPackageSize(Long packageSize) {
        this.packageSize = packageSize;
    }

    @TableField("channel")
    private  Integer channel;

    @TableField("packageSize")
    private  Long packageSize;

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @TableField("price")
    private  BigDecimal price;


    public Long getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(Long purchaseId) {
        this.purchaseId = purchaseId;
    }

    public BigDecimal getOrderNumbers() {
        return orderNumbers;
    }

    public void setOrderNumbers(BigDecimal orderNumbers) {
        this.orderNumbers = orderNumbers;
    }

    public BigDecimal getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Integer getUnitId() {
        return unitId;
    }

    public void setUnitId(Integer unitId) {
        this.unitId = unitId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public BigDecimal getHavaSend() {
        return havaSend;
    }

    public void setHavaSend(BigDecimal havaSend) {
        this.havaSend = havaSend;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public BigDecimal getNotSend() {
        return notSend;
    }

    public void setNotSend(BigDecimal notSend) {
        this.notSend = notSend;
    }

    public BigDecimal getHavaSendPrice() {
        return havaSendPrice;
    }

    public void setHavaSendPrice(BigDecimal havaSendPrice) {
        this.havaSendPrice = havaSendPrice;
    }

    public BigDecimal getNotSendPrice() {
        return notSendPrice;
    }

    public void setNotSendPrice(BigDecimal notSendPrice) {
        this.notSendPrice = notSendPrice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "PurchaseOrders{" +
        "purchaseId=" + purchaseId +
        ", orderNumbers=" + orderNumbers +
        ", orderAmount=" + orderAmount +
        ", unitId=" + unitId +
        ", remark=" + remark +
        ", havaSend=" + havaSend +
        ", productId=" + productId +
        ", notSend=" + notSend +
        ", havaSendPrice=" + havaSendPrice +
        ", notSendPrice=" + notSendPrice +
        ", status=" + status +
        "}";
    }
}
